home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší České Hry / Nej české hry.iso / hry / vesmirna becherovka / 2004 Vesmírná Becherovka / Becherovka.exe / scripts / DefineSprite_3370 / frame_1 / DoAction.as
Encoding:
Text File  |  2004-09-30  |  790 b   |  39 lines

  1. pom = new String("ABCDEFGHIJKLMNOPQR");
  2. index = 0;
  3. while(index < 18)
  4. {
  5.    if(_root.s.UCode.length < 9)
  6.    {
  7.       tellTarget(pom.charAt(index))
  8.       {
  9.          gotoAndStop(1);
  10.       }
  11.    }
  12.    else
  13.    {
  14.       tellTarget(pom.charAt(index))
  15.       {
  16.          gotoAndStop(2);
  17.       }
  18.    }
  19.    index++;
  20. }
  21. index = 0;
  22. while(index < _root.s.Ucode.length)
  23. {
  24.    tellTarget(_root.s.UCode.charAt(index))
  25.    {
  26.       gotoAndStop(3);
  27.    }
  28.    index++;
  29. }
  30. p1.what = _root.s.Ucode.charAt(0);
  31. p2.what = _root.s.Ucode.charAt(1);
  32. p3.what = _root.s.Ucode.charAt(2);
  33. p4.what = _root.s.Ucode.charAt(3);
  34. p5.what = _root.s.Ucode.charAt(4);
  35. p6.what = _root.s.Ucode.charAt(5);
  36. p7.what = _root.s.Ucode.charAt(6);
  37. p8.what = _root.s.Ucode.charAt(7);
  38. p9.what = _root.s.Ucode.charAt(8);
  39.